import os

from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QWidget

from ui.Pop_up_warning import Pop_up_warning


class My_pop_up_warning(QWidget, Pop_up_warning):
    def __init__(self):
        super().__init__()
        self.setupUi(self)
        self.setWindowTitle('')

        base_path = os.path.dirname(__file__)
        base_path = base_path.replace('\\window', '')
        icon_path = os.path.join(base_path, 'icon')
        icon_path = os.path.join(icon_path, 'Python.png')
        icon = QIcon(icon_path)
        self.setWindowIcon(icon)

